package com.incar.chuxing.utils.ble.common;

/**
 * @Description: BLE常量
 * @author: <a href="http://www.xiaoyaoyou1212.com">DAWI</a>
 * @date: 16/8/20 20:31.
 */
public class ZXTBleConstant {
    public static final String CLIENT_CHARACTERISTIC_CONFIG = "00002902-0000-1000-8000-00805f9b34fb";

    public static final int TIME_FOREVER = -1;

    public static final int DEFAULT_SCAN_TIME = 15000;//扫描超时时间
    public static final int DEFAULT_CONN_TIME = 10000;//连接超时时间
    public static final int DEFAULT_OPERATE_TIME = 2000;//写出超时时间
    public static final int DEFAULT_DISCONNECT_TIME = 5000;//断开连接超时

    public static final int MSG_WRITE_CHA = 1;
    public static final int MSG_WRITE_DES = 2;
    public static final int MSG_READ_CHA = 3;
    public static final int MSG_READ_DES = 4;
    public static final int MSG_READ_RSSI = 5;
    public static final int MSG_CONNECT_TIMEOUT = 6;//连接超时，不包括服务发现超时
    public static final int MSG_DISCONNECT_TIMEOUT = 7;
    public static final int MSG_CONNECTION_STATE_CHANGE = 8;//连接状态改变，回调onConnectionStateChange()方法
    public static final int MSG_DISCOVERING_SERVICE = 9;//去发现服务
    public static final int MSG_UNDISCOVERING_SERVICE = 10;//未发现服务
    public static final int MSG_SERVICES_DISCOVERED = 11;//发现服务，但是不一定有uuid
    public static final int MSG_RECONNECT = 12;//重新连接
}
